import Vue from 'vue'
import Vuex from 'vuex'
import App from './App.vue'
import router from './router'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css'
import ElementUi from 'element-ui'
import axios from 'axios'
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';



Vue.config.productionTip = false;
Vue.use(ElementUi);
Vue.use(Vuex);
Vue.use(Avue,axios);


Vue.prototype.axios = axios;
window.axios = axios;
// axios.defaults.baseURL = 'http://127.0.0.1:4000/';
// axios.defaults.withCredentials  =true;



//路由跳转之前

var xp = new Vue({
  router,
  store,
  render: h => h(App)
})
xp.$mount('#app')
